xen/arm: p2m: Clean-up mfn_to_p2m_entry
authorJulien Grall <julien.grall@arm.com>
Wed, 20 Jul 2016 16:10:47 +0000 (17:10 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 26 Jul 2016 22:28:27 +0000 (15:28 -0700)
commit4b11387906fdcc3ad66de1038699b9293144ab8b
treecfddc0b7a4e6672f2e34c6358810b5c825c55497
parent96d1be3788805257690a58dbea65d4d6b7ac30dc
xen/arm: p2m: Clean-up mfn_to_p2m_entry

The physical address is computed from the machine frame number, so
checking if the physical address is page aligned is pointless.

Furthermore, directly assigned the MFN to the corresponding field in the
entry rather than converting to a physical address and orring the value.
It will avoid to rely on the field position and make the code clearer.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/p2m.c